Skip to content

Set up Cursor Cloud dev environment for Learning Lens - #1

Draft
moegon wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-f7a2
Draft

Set up Cursor Cloud dev environment for Learning Lens#1
moegon wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-f7a2

Conversation

@moegon

@moegon moegon commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

Sets up and verifies the Learning Lens development environment on the Linux cloud VM, and documents durable, non-obvious setup notes for future agents.

This PR only adds a ## Cursor Cloud specific instructions section to AGENTS.md; no product code is changed. The environment tooling itself (uv/Python 3.13, Swift 6 toolchain) is captured in the VM snapshot and refreshed by the configured startup update script.

Environment

The cloud VM is Linux (x86_64). Two of the three components run here; the SwiftUI app is macOS/Xcode-only.

  • Installed uv + a uv-managed Python 3.13 and synced backend/ deps.
  • Installed a Swift 6.1.2 Linux toolchain via swiftly (+ required system libs) so the shared LearningLensCore package tests run on Linux.

What I ran

Component Lint Test Run
Backend (backend/, FastAPI) uv run ruff check . — passed uv run pytest — 8 passed make backend-run (uvicorn on :8000)
LearningLensCore (Swift pkg) n/a make swift-test — 5 passed n/a (library)
SwiftUI app (apple/App) macOS/Xcode-only; not runnable on Linux (CI macos-15)

make test (swift-test + backend-test) passes end-to-end on Linux: 5 + 8 tests.

Hello-world verification

Started the backend and submitted a de-identified aggregate observation to POST /v1/educator-insights, which returned a bounded, non-diagnostic educator summary (provider: local) with next steps and a safety notice. Also confirmed the privacy safety-gate rejects diagnostic language with HTTP 422.

learning_lens_backend_educator_insights_demo.mp4

Swagger UI loaded for Learning Lens API

Startup update script

$HOME/.local/bin/uv sync --all-groups --project backend — minimal backend dependency refresh (the Swift package has no external deps, so nothing to re-sync there).

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: MG <moegon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants